Class ldbf.ldbfJava
All Packages Class Hierarchy This Package Previous Next Index
Class ldbf.ldbfJava
java.lang.Object
|
+----ldbf.ldbfJava
- public class ldbfJava
- extends Object
ldbfJava Class - implements a connection to a remote server
and a JAVA variant of the ldbf API
-
ldbfErrno
- Error code returned by last operation
-
ldbfJava()
- Constructor, creates LDBF Java client with default user name
-
ldbfJava(String, String)
- Constructor, creates LDBF Java client with specified user name and password
-
AliasList()
- List - gets list of available tables, aliases are separated by comma
-
Append(String)
- Appends records to the table
-
Blank(String)
- Blanks current record of specified table
-
Bottom(String)
- Goes to bottom of table,if tag is set by SetTag it will be used
-
Call(String, String)
- Calls stored procedure
-
Connect(String)
- Connect - establishes connection to named host
-
Connect(String, int)
- Connect with specified host using a different port.
-
CurrentTag(String)
- Returns current tag of the table
-
Delete(String)
- Marks current record as deleted
-
Deleted(String)
- Returns true if current record is deleted
-
DoubleValue(String, String)
- Returns value of field
-
FetchResult()
- Returns next result returned by stored procedure
if no more result returns null
-
FieldInfo(String, int)
- Returns String represention of i'nth field
Field's info are in format:
field_name field_length field_type field_decs
-
Fields(String)
- Returns number of fields in the table
-
Go(String, int)
-
-
Locate(String, String, String)
- Locates matching record in table from current record.
-
LocateFirst(String, String, String, String)
- Locates first matching record in table.
-
Lock(String)
- Locks current record,return true if successful
-
LongValue(String, String)
- Returns value of field
-
MemoValue(String, String)
- Returns value of memo field
-
Reccount(String)
- Returns number of records in the table
-
Recno(String)
- Returns number of current record
-
RecordBuffer(String)
- Returns record buffer of the table
-
Replace(String, String, String)
- Replaces field of table with specified value
-
ReplaceDouble(String, String, Double)
- Replaces field of table with specified value
-
ReplaceLong(String, String, Integer)
- Replaces field of table with specified value
-
ReplaceMemo(String, String, byte[], int)
- Sets value of memo field
-
Seek(String, String)
- Seeks in table for value,tag must be set by SetTag
-
SetTag(String, String)
- Sets default tag that'll be used by Seek,Skip,Top,and Bottom functions
-
Shutdown()
- Close - close the connection to the server
-
Skip(String, int)
- Skips specified number of records,if tag is set by SetTag it will be used
-
TagInfo(String)
- Returns tag info about table
-
Top(String)
- Goes to top of table,if tag is set by SetTag it will be used
-
Unlock(String)
- Unlocks current record
-
Update(String)
- Updates current record
-
Value(String, String)
- Returns value of field
-
bufferLength()
- Returns length of returned by server buffer
-
isOpened(String)
- Returns true if specified table is opened
ldbfErrno
public int ldbfErrno
- Error code returned by last operation
ldbfJava
public ldbfJava()
- Constructor, creates LDBF Java client with default user name
ldbfJava
public ldbfJava(String username,
String passwd)
- Constructor, creates LDBF Java client with specified user name and password
Connect
public int Connect(String ldbfServer) throws IOException
- Connect - establishes connection to named host
Connect
public int Connect(String ldbfServer,
int otherPort) throws IOException
- Connect with specified host using a different port.
bufferLength
public int bufferLength()
- Returns length of returned by server buffer
Shutdown
public void Shutdown() throws IOException
- Close - close the connection to the server
AliasList
public String AliasList() throws IOException
- List - gets list of available tables, aliases are separated by comma
Reccount
public int Reccount(String alias) throws IOException
- Returns number of records in the table
CurrentTag
public String CurrentTag(String alias)
- Returns current tag of the table
TagInfo
public String TagInfo(String alias) throws IOException
- Returns tag info about table
FieldInfo
public String FieldInfo(String alias,
int i)
- Returns String represention of i'nth field
Field's info are in format:
field_name field_length field_type field_decs
Fields
public int Fields(String alias)
- Returns number of fields in the table
RecordBuffer
public String RecordBuffer(String alias)
- Returns record buffer of the table
Recno
public int Recno(String alias)
- Returns number of current record
Blank
public void Blank(String alias) throws IOException
- Blanks current record of specified table
SetTag
public void SetTag(String alias,
String tagname) throws IOException
- Sets default tag that'll be used by Seek,Skip,Top,and Bottom functions
Go
public void Go(String alias,
int recno) throws IOException
Top
public void Top(String alias) throws IOException
- Goes to top of table,if tag is set by SetTag it will be used
Bottom
public void Bottom(String alias) throws IOException
- Goes to bottom of table,if tag is set by SetTag it will be used
Seek
public boolean Seek(String alias,
String value) throws IOException
- Seeks in table for value,tag must be set by SetTag
Skip
public void Skip(String alias,
int recno) throws IOException
- Skips specified number of records,if tag is set by SetTag it will be used
Append
public void Append(String alias) throws IOException
- Appends records to the table
Update
public void Update(String alias) throws IOException
- Updates current record
Unlock
public void Unlock(String alias) throws IOException
- Unlocks current record
Lock
public boolean Lock(String alias) throws IOException
- Locks current record,return true if successful
Replace
public void Replace(String alias,
String field,
String value)
- Replaces field of table with specified value
ReplaceLong
public void ReplaceLong(String alias,
String field,
Integer value)
- Replaces field of table with specified value
ReplaceDouble
public void ReplaceDouble(String alias,
String field,
Double value)
- Replaces field of table with specified value
Value
public String Value(String alias,
String field)
- Returns value of field
LongValue
public int LongValue(String alias,
String field)
- Returns value of field
DoubleValue
public double DoubleValue(String alias,
String field)
- Returns value of field
MemoValue
public byte[] MemoValue(String alias,
String field) throws IOException
- Returns value of memo field
ReplaceMemo
public void ReplaceMemo(String alias,
String field,
byte value[],
int len) throws IOException
- Sets value of memo field
Delete
public void Delete(String alias) throws IOException
- Marks current record as deleted
Deleted
public boolean Deleted(String alias)
- Returns true if current record is deleted
LocateFirst
public boolean LocateFirst(String alias,
String start,
String end,
String cond) throws IOException
- Locates first matching record in table.
if current tag is set it'll be used.
start is begining value of current tag
end is xBase expression, scan will be processed until this expression false
cond is xBase expression, record that matches this condition will be returned
Locate
public boolean Locate(String alias,
String end,
String cond) throws IOException
- Locates matching record in table from current record.
if current tag is set it'll be used.
start is begining value of current tag
end is xBase expression, scan will be processed until this expression false
cond is xBase expression, record that matches this condition will be returned
Call
public int Call(String procedure,
String param) throws IOException
- Calls stored procedure
isOpened
public boolean isOpened(String alias)
- Returns true if specified table is opened
FetchResult
public ldbfResult FetchResult()
- Returns next result returned by stored procedure
if no more result returns null
All Packages Class Hierarchy This Package Previous Next Index